package cn.software.service;

import cn.software.entity.Subject;
import cn.software.entity.param.SubjectParam;
import cn.software.entity.param.TopicParam;
import cn.software.entity.vo.SubjectVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 22184
* @description 针对表【subject(学科)】的数据库操作Service
* @createDate 2023-05-30 17:13:35
*/

public interface SubjectService {


    boolean addSubject(SubjectParam subjectParam);

    boolean updateSubject(SubjectParam subjectParam);

    boolean deleteSubject(SubjectParam subjectParam);

    List<Subject> getSubject();

    /**
     * 根据id获取科目
     * @param subjectId 科目id
     * @return 获取的科目，不存在返回null
     */
    SubjectVo getSubjectById(Integer subjectId);
}